import http from '@/utils/axios';

// 获取列表
export const getUserTagListApi = (params) => {
    return http({
        method: 'get',
        url: '/user_tag/index',
        params,
    });
};

// 获取信息
export const getUserTagInfoApi = (id: number) => {
    return http({
        method: 'GET',
        url: `/user_tag/read/${id}`,
    });
};

// 新增信息
export const saveUserTagInfoApi = (data) => {
    return http({
        method: 'POST',
        url: `/user_tag/save`,
        data,
    });
};

// 更新信息
export const updateUserTagInfoApi = (id: number, data) => {
    return http({
        method: 'PUT',
        url: `/user_tag/update/${id}`,
        data,
    });
};

// 删除信息
export const deleteUserTagInfoApi = (id: number) => {
    return http({
        method: 'DELETE',
        url: `/user_tag/delete/${id}`,
    });
};